﻿using AH.EntityFramework;
using AH.Records;
using System.Data.Entity.Migrations;

namespace AH.Migrations
{
    internal sealed class Configuration : DbMigrationsConfiguration<AHDbContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = false;
            ContextKey = "AH";
        }

        protected override void Seed(AHDbContext context)
        {
            context.Product.AddOrUpdate(
                p => p.Asin,
                new Product { Asin="BO123456789", Title="title", type="phone", IsOrder=false }
                );
        }
    }
}
